<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            list-style: none;
            padding: 0px;

        }

        .f1 {
            width: 200px;
            height: 50px;
            line-height: 50px;
            /* border: 1px solid blue; */
            margin: 100px auto;
            position: relative;
            float: left;
            /* perspective: 300px;          */
            text-align: center;    
        }
        .f2{
          margin-left: 100px;
        }
        .you{
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            background-color: blue;         /* 子元素保持3d效果   */
            transition: all 0.2s;
        } 
        .web,
        .chuan{
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%; 
            transition: all 0.2s;
        }
        .Web {
            transform: rotateX(0deg) translateZ(25px);
            background: blue;
        }

        .chuan {
             transform:rotateX(90deg) translateZ(25px);    
             background: green;    
        }
      .you:hover {
        transform: translateZ(25px) rotateX(-90deg);   
      }
        
    </style>
</head>

<body>
    <div class="f1 f2">
        <ul class="you">
            <li class="Web">
                传智播客
            </li>
            <li class="chuan">
                Web前端
            </li>
        </ul>
    </div>
    <div class="f1">
        <ul class="you">
            <li class="Web">
                传智播客
            </li>
            <li class="chuan">
                Web前端
            </li>
        </ul>
    </div>
    <div class="f1">
        <ul class="you">
            <li class="Web">
                传智播客
            </li>
            <li class="chuan">
                Web前端
            </li>
    </div>
    <div class="f1">
        <ul class="you">
            <li class="Web">
                传智播客
            </li>
            <li class="chuan">
                Web前端
            </li>
    </div>
</body>

</html>